import { BasicColumn, FormSchema } from '/@/components/Table';


export const columns: BasicColumn[] = [
  {
    title: 'id',
    dataIndex: 'id',
    width: 150,
    defaultHidden: true
  },
  {
    title: '模板组名称',
    dataIndex: 'groupName',
    width: 150,
    align: 'left',
  },
  {
    title: '创建时间',
    dataIndex: 'createdAt',
    width: 150,
  },
  {
    title: '更新时间',
    dataIndex: 'updatedAt',
    width: 150,
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'groupName',
    label: '名称',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false,
  },
  {
    field: 'groupName',
    label: '组名称',
    component: 'Input',
    required: true,
  }
]
